import 'dart:collection';

final class Notifier extends LinkedListEntry<Notifier> {
  final Function({Notifier notifier, dynamic data}) notify;

  Notifier({required this.notify});
}

final class NotifierWithReturn extends LinkedListEntry<NotifierWithReturn> {
  final Future<int> Function(
      {NotifierWithReturn notifier, dynamic data, Error? error}) notify;

  NotifierWithReturn({required this.notify});
}
